package com.czy.workflow.core.model;

public enum DocStatus {

    /**
     * 编辑中
     */
    EDITING("1"),

    /**
     * 已提交
     */
    COMMITTED("2")
    ;

    private String code;

    DocStatus(String code){
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean eq(String type){
        return getCode().equals(type);
    }

}
